<?php $this->_extends('../_layouts/default_layout'); ?>
<?php $this->_block('contents'); ?>
<fieldset><legend>添加</legend>
<form method="post" action="<?=isset($_GET['id'])?url('Storage::Product/MaterialEditSave'):url('Storage::Product/MaterialCreateSave')?>">
<?include(Q::ini('custom_system/elements_dir') . 'searchform_element.php');?>
<table class="form_table">
<tr>
	<th>包材编号</th>
	<td><input type="text" name="number" value="<?=isset($material['number'])?$material['number']:''?>" /></td>
	<th>包材名称</th>
	<td><input type="text" name="name" value="<?=isset($material['name'])?$material['name']:''?>" /></td>
</tr>
<tr>
	<th>规格</th>
	<td><input type="text" name="specifications" value="<?=isset($material['specifications'])?$material['specifications']:''?>"  /></td>
	<th>重量</th>
	<td><input type="text" name="weight" value="<?=isset($material['weight'])?$material['weight']:''?>" /></td>
</tr>
<tr>
	<th>价格</th>
	<td><input type="text" name="price" value="<?=isset($material['price'])?$material['price']:''?>"  /></td>
	<th>生产商</th>
	<td><input type="text" name="provider" value="<?=isset($material['provider'])?$material['provider']:''?>" /></td>
</tr>
<tr>
	<th></th>
	<td><input type="submit" class="button" value="提交" /></td>
</tr>
</table>
</form>
</fieldset>
<?php $this->_endblock(); ?>